<template>
  <div>
    <el-breadcrumb class="mian" separator-class="el-icon-arrow-right">
      <el-breadcrumb-item>{{ name1 }}</el-breadcrumb-item>
      <el-breadcrumb-item>{{ name }}</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>
<script>
export default {
  data() {
    return {
      name: "商品列表",
      name1: "数据管理",
    };
  },
  watch: {
    $route: {
      handler(newval) {
        this.name = newval.meta.title;
        this.name1 = newval.meta.title1;
      },
    },
  },
};
</script>
<style scoped>
.mian {
  margin-top: 20px;
}
</style>